package cn.wolfcode.shop.feign;

import cn.wolfcode.shop.common.Result;
import cn.wolfcode.shop.feign.hystrix.UserFeignHystrix;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "member-server", fallback = UserFeignHystrix.class)
public interface UserFeignApi {
    // 刷新 token 时效
    @RequestMapping("/refeshToken")
    Result<Boolean> refeshToken(@RequestParam("token") String token);
}